﻿@*@model IEnumerable<SDE_FIC.Models.Turma>*@
@model PagedList.IPagedList<SDE_FIC.Models.Turma>
@using PagedList.Mvc
<link href="~/Content/PagedList.css" rel="stylesheet" type="text/css" />
@{
    ViewBag.Title = "Diário";
    Layout = "~/Views/Shared/_Layout_Sistema.cshtml";
}

<h2>@ViewBag.Title</h2>

<table class="table table-bordered table-hover">
    <thead>
    <tr>
        <th>
            Turma
        </th>
        <th>
            Professor
        </th>
        <th>
            Status
        </th>
         <th>Ação</th>
    </tr>

    </thead>
@foreach (var item in Model) {
    <tbody>
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Descricao) - @Html.DisplayFor(modelItem => item.Curso.CursoNome)<br />
            <font size="1,5">
            <b>Horário: </b> @Html.DisplayFor(modelItem => item.Horario) - 
            <b>Início Previsto: </b> @Html.DisplayFor(modelItem => item.DataInicio) 
            <b>Término Previsto: </b> @Html.DisplayFor(modelItem => item.DataFim)</font>
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Funcionario.NomeCompleto)
        </td>
        <td style="text-align:center;">
             @Html.CheckBoxFor(modelItem => item.Status, new { @disabled = true })
        </td>

        <td style="text-align:center; width:200px;">
            @Html.ActionLink("Frequência", "Frequencia", new { id=item.Idturma }) |
            @Html.ActionLink("Ocorrência", "Relato", new { id=item.Idturma  }) |
            @Html.ActionLink("Detalhes", "Detais", new { id=item.Idturma }) 
        </td>
    </tr>
   </tbody>
}

</table>

<div style="font-size:8pt;width:100%;text-align:right;" >
@Html.PagedListPager(Model, page => Url.Action("Index", new {pagina = page}))
</div>